<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>Document</title>
		<script src="./vue.global.js"></script>
		<link rel="stylesheet" href="./index.css" />
		<link rel="stylesheet" href="./table.css" />
		<link rel="stylesheet" href="./pugong.css" />
		<link rel="stylesheet" href="./utils.css" />
		<script src="./index.full.js"></script>

		<script>
			//适配代码
			(function(doc, win) {
				var docEI = doc.documentElement,
					resizeEvt =
					"orientationchange" in window ? "orientataionchange" : "resize",
					recalc = function() {
						var clientWidth = docEI.clientWidth;
						if (!clientWidth) return;
						//100是字体大小，1536是开发时浏览器窗口的宽度，等比计算
						docEI.style.fontSize = 100 * (clientWidth / 1536) + "px";
					};

				if (!doc.addEventListener) return;
				win.addEventListener(resizeEvt, recalc, false);
				doc.addEventListener("DOMContentLoaded", recalc, false);
			})(document, window);
		</script>
		<style>
			* {
				/* margin: 0;
        padding: 0; */
				font-size: 0.15rem;
			}
		</style>
	</head>

	<body>
		<div id="app" class="table-content text-left ">
			<h3 class="text-center" style="font-size: 0.25rem">安全操作规程告知书</h3>


			<div class="text-indent mt-2">1、所有绝缘、检验工具，应妥善保管严禁他用，并应定期检查、校验，线路上禁止带负荷接电或断电，并禁止带电操作。</div>
			<div class="text-indent">2、工作时佩戴个人安全防护用品。装设接地线，应由二人进行，先接接地端，后接导体端，拆除时顺序相反，接地线使用截面积应不小于25平方毫米，严禁用缠绕的方法，进行接地和短路。
			</div>
			<div class="text-indent">3、安装照明线路不准直接在板条天棚或隔间板上通行及堆放材料，必须通行时，应在方楞上铺设脚手板。</div>
			<div class="text-indent">4、电力传动装置系统及高低压各型开关调试时，应将开关手柄取下或锁上，悬挂警示牌，防止误合闸。</div>
			<div class="text-indent">5、用摇表测定绝缘电阻，应防止有人触及正在测定中的线路或设备，雷电时禁止测定线路。</div>
			<div class="text-indent">6、电气材料或设备需放电时，应穿戴绝缘防护用品，用绝缘棒安全放电。</div>
			<div class="text-indent">7、有人触电时，应立即切断电源，进行急救；电气着火时，应立即将电源切断，使用干粉灭火器或干砂灭火。</div>
			<div class="text-indent">8、拉闸操作应核对设备名称、编号、分合位置等。操作时先拉负荷侧，操作完后，在停电设备上挂上“有人工作，禁止合闸”的标示牌。</div>
			<div class="text-indent">9、拉闸操作由二人进行，一人操作一人监护；操作机械转动的设备时应戴绝缘手套，无机械转动的设备应用合格的绝缘杆；登杆操作应戴安全帽。</div>
			<div class="text-indent">10、停止变压器工作时，应先拉开低压闸刀，后拉高压保险器；合闸时程序相反，变压器工作台上有人工作时，禁止带电摘挂高压保险管。</div>
			<div class="text-indent">11、遇雷雨天气时严禁拉闸操作，雨天倒闸操作应使用防雨拉杆。</div>



			<div class="d-flex flex-row mt-2 justify-content-between">
				<div>
					<div @click="setUpEquipment('operateForm.announcer','TaskSignFinger')">告知者（签字）： </div>
					<el-image v-show="operateForm.announcer" class="sign_img" :src="operateForm.announcer" fit="fill"></el-image>
					<div>
						<el-input v-model="operateForm.year" class="people-input" placeholder=" " style="width: 0.8rem"></el-input>
						年
						<el-input v-model="operateForm.month" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						月
						<el-input v-model="operateForm.day" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						日
					</div>
				</div>
				<div>
					<div @click="setUpEquipment('operateForm.announcerd','TaskSignFinger')">被告知者（签字）：</div>
					<el-image v-show="operateForm.announcerd" class="sign_img" :src="operateForm.announcerd"
						fit="fill"></el-image>
					<div>
						<el-input v-model="operateForm.year1" class="people-input" placeholder=" " style="width: 0.8rem"></el-input>
						年
						<el-input v-model="operateForm.month1" class="people-input" placeholder=" "
							style="width: 0.5rem"></el-input>
						月
						<el-input v-model="operateForm.day1" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						日
					</div>
				</div>
			</div>

		</div>
		<script>
			const {
				createApp,
				reactive,
				toRefs,
				ref,
				onMounted
			} = Vue;
			const vue3Composition = {
				setup() {
					const operateForm = ref({
						year: "",
						month: "",
						day: "",
						year1: "",
						month1: "",
						day1: "",
						announcer: "", //告知者
						announcerd: '', //被告知者
					});

					window.setSign = (event) => {
						operateForm.value[event.key] = event.img;
					};


					window.getData = (event) => {
						return operateForm.value;
					};
					window.setData = (data) => {
						operateForm.value = data;
					};

					//peopleForm.sign
					const setUpEquipment = (key, type) => {
						window.parent.childListener({
							key,
							type,
						});
					};
					return {
						operateForm,
						setUpEquipment,
					};
				},
			};
			const app = createApp(vue3Composition)
				.use(ElementPlus)
				.mount("#app");
		</script>
	</body>
</html>